<!DOCTYPE html>
<html>
<#include "../../include/resource.html">
<body>
	<#assign nid="member"> 
	<#include "../../common/function.html"> 
	<#include "../../include/header.html">
	 
	<!-- #main start-->
	<div id="main" class="clearfix" >
		<!-- .wrap950 开始-->
		<div class="wrap950 ">
			<!--左边的导航user_left 开始-->
			<div class="user_left">
			<#assign mid="m_account" >
				<#include "../user_menu.html">
			</div>
			<!--左边的导航user_left 结束-->

			<!--右边的内容user_right 开始-->
			<div class="user_right">
				<#if param?exists>
					<#if param.get("dotime1")?exists><#assign dotime1=param.get("dotime1")></#if>
					<#if param.get("dotime2")?exists><#assign dotime2=param.get("dotime2")></#if>
				</#if>
				<!--右边的内容user_right_main 开始-->
				<div class="user_right_main">
					<div class="user_main_title well" style="height:25px; padding-top:3px;"> 
						记录时间：<input type="text" name="dotime1" id="dotime1" value="${dotime1?default("")}" size="15" onClick="change_picktime()"/> 
						到 <input type="text"  name="dotime2" value="${dotime2?default("")}" id="dotime2" size="15" onClick="change_picktime()"/>   
						<input value="搜索" type="submit" class="btn-action" onClick="sousuo();" /> 
						<!--  交易流水总计：￥${(total)?default(0)} 
		                <br>
						<div class="alert">(备注：此金额非账户总额，只是账户历史所有交易涉及资金总和！)</div>	-->
					</div>	
					<!-- 内容开始 -->
					<form action="" method="post">
						<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" >
							<tr class="head">
								<td>id</td>
								<td>用户名</td>
								<td>奖品等级</td>
								<td>奖品名称</td>
								<td>抽奖时间</td>
							</tr>
							<#list list as item>
							<tr>
								<td>${item_index+1}</td>
								<td>${item.user_name}</td>
								<td><#if item.status==1>${(item.level!0)?c}等奖<#else>-</#if></td>
                                <td>${item.award_name!}</td>
                                <td>${dateformat(item.addtime!"")}</td>
							</tr>
							</#list>
							<tr>
								<td colspan="11" class="page">
									<div align="center">
										<#import "../../common/page.html" as pager>  
			         	 				<@pager.pagination page=page url="/award/log.html?status=1&ruleId=1" map=param style="style1"  />
		         	 				</div>  
								</td>
							</tr>
						</table>
					</form>	
					<!-- 内容结束 -->
				</div>
				<!--右边的内容user_right_main 结束-->
			</div>
			<!--右边的内容user_right 结束-->
		</div>
		<!-- .wrap950 结束-->
	</div>
	<!-- #main start-->
	<script>
	var url = "";
	
	function sousuo(){
		var _url = "/award/log.html?status=1&ruleId=1&search=true";
		var dotime1 = jQuery("#dotime1").val();
		var dotime2 = jQuery("#dotime2").val();
		var isFirst=true;
		if (dotime1!=null){
			 _url += "&dotime1="+dotime1;
		}
		if (dotime2!=null){
			 _url += "&dotime2="+dotime2;
		}
		location.href=url+_url;
		
	}

	</script>
	<#include "../../include/footer.html">